package com.yc.entities.custom;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author kukaha
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "CustomPatientInfoResponseBean对象", description = "患者基本信息查询响应bean")
public class CustomPatientInfoResponseBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "患者信息表id")
    private Integer id;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "用户性别")
    private String sex;

    @ApiModelProperty(value = "用户年龄")
    private Integer age;

    @ApiModelProperty(value = "用户生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @ApiModelProperty(value = "用户身份证号")
    private String idCard;

    @ApiModelProperty(value = "糖尿病类型")
    private String sugarType;

    @ApiModelProperty(value = "床位号")
    private Integer bedNum;

    @ApiModelProperty(value = "住院号")
    private String hospitalNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
    @ApiModelProperty(value = "住院时间")
    private Date toHospitalTime;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "身高")
    private Double height;

    @ApiModelProperty(value = "体重")
    private Double weight;

    @ApiModelProperty(value = "bmi")
    private Double sugarBmi;

    @ApiModelProperty(value = "糖化值")
    private Double sugarNum;


}
